﻿<%@ Page Title="" Language="C#" MasterPageFile="/Common/Master.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentForm" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHtml" runat="Server">
    <div class="easyui-layout tableEdit" data-options="fit:true,border:false">
        <div data-options="region:'center',border:false">
           <div class="z_wrap">
                <ul class="info">
					<li>
                                        <em class='l_name'>钉钉用户id：</em>
                                        <div class='r_con' id='userid'></div></li><li>
                                        <em class='l_name'>开发者下唯一id：</em>
                                        <div class='r_con' id='unionid'></div></li><li>
                                        <em class='l_name'>主管的ID：</em>
                                        <div class='r_con' id='managerUserId'></div></li><li>
                                        <em class='l_name'>入职时间：</em>
                                        <div class='r_con' id='hiredDate'></div></li><li>
                                        <em class='l_name'>名称：</em>
                                        <div class='r_con' id='name'></div></li><li>
                                        <em class='l_name'>手机：</em>
                                        <div class='r_con' id='mobile'></div></li><li>
                                        <em class='l_name'>工号：</em>
                                        <div class='r_con' id='jobnumber'></div></li><li>
                                        <em class='l_name'>部门集合：</em>
                                        <div class='r_con' id='department'></div></li><li>
                                        <em class='l_name'>创建时间：</em>
                                        <div class='r_con' id='AddTime'></div></li><li>
                                        <em class='l_name'>上次修改时间：</em>
                                        <div class='r_con' id='LastTime'></div></li><li>
                                        <em class='l_name'>上次修改人：</em>
                                        <div class='r_con' id='LastUserId'></div></li><li>
                                        <em class='l_name'>部门主键ID：</em>
                                        <div class='r_con' id='depGuid'></div></li>
				</ul>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            if ($.getUrlParamer("guid") != "") {
                DataBind();
            }
        });

        function DataBind() {
            $.InvokeAjax({
                url: "Api/V1/dd_user/Getuser",
                data: { ID: $.getUrlParamer("guid") },
                callBack: function (data) {
                    var obj = $.StrToJson(data).Results;

                    $.SetValue("ID", obj.ID);
$.SetValue("userid", obj.userid);
$.SetValue("unionid", obj.unionid);
$.SetValue("managerUserId", obj.managerUserId);
$.SetValue("hiredDate", obj.hiredDate);
$.SetValue("name", obj.name);
$.SetValue("mobile", obj.mobile);
$.SetValue("jobnumber", obj.jobnumber);
$.SetValue("department", obj.department);
$.SetValue("AddUserID", obj.AddUserID);
$.SetValue("AddTime", $.DateFormat(obj.AddTime, 'yyyy-MM-dd HH:mm:ss'));
$.SetValue("LastTime", $.DateFormat(obj.LastTime, 'yyyy-MM-dd HH:mm:ss'));
$.SetValue("LastUserId", obj.LastUserId);
$.SetValue("depGuid", obj.depGuid);

                }
            });
        } 
    </script>
</asp:Content>